/**
 *  Copyright 2011 Marco Berri - marcoberri@gmail.com
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the License.
**/

package com.conf;

/**
 *
 * @author marco
 */
public class Proxy {

    private String url;
    private String domain;
    private String to;
    /**
     *  blocco di proxy
     */
    public static final String TAG_XML_PROXY = "proxy";
    /**
     * dominio principale su cui servire gli url
     */
    public static final String TAG_XML_DOMAIN = "domain";
    /**
     * url di proxy
     */
    public static final String TAG_XML_URL = "url";
    /**
     * url di decodifica del proxy
     */
    public static final String TAG_XML_TO = "to";

    /**
     * @return the url
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param url the url to set
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * @return the domain
     */
    public String getDomain() {
        return domain;
    }

    /**
     * @param domain the domain to set
     */
    public void setDomain(String domain) {
        this.domain = domain;
    }

    /**
     * @return the to
     */
    public String getTo() {
        return to;
    }

    /**
     * @param to the to to set
     */
    public void setTo(String to) {
        this.to = to;
    }

    /**
     *
     * @return
     */
    @Override
    public String toString() {

        return "url: " + url + " - "
                + "domain: " + domain + " - "
                + "to: " + to;
    }
}
